package model

import (
	"time"
)

type DBOperations interface {
	Insert() (int64, error)
	Update() (int64, error)
	Delete() (int64, error)
}

// Model 基本model信息
type Model struct {
	ID        uint       `json:"id" xorm:"pk autoincr"`
	CreatedAt time.Time  `json:"created_at,omitempty" xorm:"created"`
	UpdatedAt time.Time  `json:"updated_at,omitempty" xorm:"updated"`
	DeletedAt *time.Time `json:"deleted_at,omitempty" xorm:"deleted"`
}
